package com.wang

import java.io.File


fun main() {
    val msg =
        "{\"code\":\"SUCCESS\",\"message\":\"OK\",\"data\":{\"channel\":\"SHOPEE_ID\",\"genieShopId\":\"SH621890FDADBE1D000164D0AA\",\"genieMerchantId\":\"MC62187D257D560D00013A3205\",\"genieTransactionId\":\"e27e812c043551b4\",\"channelShopId\":\"219866242\",\"channelSessionId\":\"323264081007670365\",\"messageList\":[{\"messageId\":\"2135309464911774065\",\"senderId\":\"75265784\",\"senderName\":\"stefanusnataniel\",\"sendTime\":\"1970-01-20T01:16:43.354Z\",\"genieChatMessageSendStatus\":\"SUCCESS\",\"externalMessageType\":\"order\",\"genieChatMessageType\":\"ORDER\",\"messageContent\":{\"orderSn\":\"220302TQ0WVGME\"}}]},\"pricingStrategy\":\"PAY\"}"
    println(msg)
//
//    val file = File("/Users/wdj/Downloads")
//    for (sub in file.listFiles()) {
//        if(!sub.name.endsWith("Emoji")) continue
//        sub.listFiles().forEachIndexed({ i, png ->
//            val url = "https://genie-public.oss-ap-southeast-1.aliyuncs.com/chat-app/emoji/${sub.name}/${png.name}"
//            val s = "      - url: ${url}\n" +
//                    "        key: ${i}"
//            println(s)
//        })
//    }
//    println(file.isDirectory)
}